package com.dmap.admin.vo;


import com.dmap.admin.po.AdminPermissions;
import com.dmap.base.pojo.BasePojo;

import java.util.List;

public class PermissionVo extends BasePojo {
    private String id;
    private String name;
    private String description;
    private String parentId;
    private String url;
    private Integer hasChild;
    private Long createtime;
    private Long modifyTime;
    private List<PermissionVo> childPermissionVoList;

    public PermissionVo(AdminPermissions adminPermissions) {
        this.setId(adminPermissions.getId().toString());
        this.setName(adminPermissions.getName());
        this.setDescription(adminPermissions.getDescription());
        this.setParentId(adminPermissions.getParentId().toString());
        this.setUrl(adminPermissions.getUrl());
        this.setHasChild(adminPermissions.getHasChild());
        this.setCreatetime(adminPermissions.getCreatetime());
        this.setModifyTime(adminPermissions.getModifyTime());
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getHasChild() {
        return hasChild;
    }

    public void setHasChild(Integer hasChild) {
        this.hasChild = hasChild;
    }

    public Long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public List<PermissionVo> getChildPermissionVoList() {
        return childPermissionVoList;
    }

    public void setChildPermissionVoList(List<PermissionVo> childPermissionVoList) {
        this.childPermissionVoList = childPermissionVoList;
    }
}